package com.open.capacity.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

import lombok.*;

/**
 * 选项表，用于记录选项信息
 *
 * @author liangd
 * @since 2021-01-29 16:35
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class Option implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 选项id,主键，自增
     */
    @TableId(value = "optnid",type = IdType.AUTO)
    private Integer optnid;

    /**
     * 选项名称
     */
    private String opname;

    /**
     * 是否正确 0正确 1错误
     */
    private Integer iscurr;

    /**
     * 数据状态 1正常 2逻辑删除
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date cretim;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updtim;

}

